home *** CD-ROM | disk | FTP | other *** search
- ╒══════════════════════════════════════════════════════════════╕
- │ │
- │ PAGE2 Version 1.0 │
- │ │
- │ A generic program to print text on both sides of the paper │
- │ │
- │ by: R. P. Byrne June 4, 1988 │
- │ │
- ╘══════════════════════════════════════════════════════════════╛
-
- Page2 is a "generic" program for printing on both sides of the paper.
- It is generic in the that no printer initialization or control
- strings are sent by the program to the printer. You can therefore
- use the program with any printer, laser or dot matrix, so long as any
- special printer settings that may be desired have been programmed by
- you in advance.
-
- Page2 automatically handles embedded formfeed characters,
- overprinting (using either the carriage return with no linefeed
- method or the embedded backspace method) and the expansion of
- embedded horizontal tab characters.
-
- ═════════════════════════════════════════════════════════════════════
-
- The syntax for Page2 is:
-
- Page2 filename [options] [output filename]
-
- where "filename" specifies the name of the document to be printed,
- and "output filename" is an optional parameter specifying a filename
- to which all printer output should be redirected.
-
- The Page2 program offers several options for the formatting of your
- document each of which is described below:
-
- /W# - This parameter informs the Page2 program of the width of the
- printable area of your paper in characters (the # represents
- this number).
-
- e.g. /W132 tells Page2 that your printer has been set up to
- print 132 characters per line.
-
- Print lines which contain more than this number of
- characters will be truncated.
-
- /L# - This parameter informs the Page2 program of the length of
- the printable area of your paper in lines (the # represents
- this number).
-
- e.g. /L60 tells Page2 that your printer has been set up to
- print 60 lines per page.
-
- /M# - Ths parameter specifies the width (in characters) of an
- optional 'gutter' margin. A 'gutter' margin (sometimes
- called a 'binding' margin) is one that prints on the left
- side of odd numbered pages and on the right side of even
- numbered pages. This is especially useful if you wish to
- insert your printed document into a 3-ring binder or if you
- intend to staple all of the pages together to give the
- appearance of a book.
-
- Note that the number of characters specified here is
- automatically deducted by the program from the page width
- specified with the /W# parameter, effectively reducing the
- number of characters that may be printed on each line.
-
- /F - This parameter toggles the printing of formfeed characters
- at the end of every page. This is only useful if
- you decide to leave room at the bottom of your page (a
- bottom margin) by specifying a page length (via the /L
- option) that is less than the physical length of your paper.
-
- /E - This parameter toggles the "which pages get printed first"
- flag in the program (ie. even pages first, or odd).
-
- /N, /P, /D - These parameters toggle the printing of certain
- information for running page headers.
-
- /N toggles the printing of the filename of your text file in
- the header, /P toggles the printing of page numbers, and /D
- toggles the printing of the current date. If all three
- parameters are toggled OFF, no running header will be
- produced.
-
- The default settings for all program options may be customized by the
- user through the Page2Cfg program. As shipped, the defaults are:
-
- Page Width = 80 characters
- Page Length = 66 lines
- Gutter Margin = 0 characters (ie. no margins)
- No Formfeeds issued between pages
- Odd pages printed first
- No running headers produced
-
- While these "factory" default settings will produce acceptable
- results on most printers, there will always be those who would want
- them changed. You may, for instance, decide that you want, by
- default, to have a full running header printed for each document.
-
- The Page2Cfg program allows this customization to take place. Simply
- place both the Page2 and Page2Cfg programs into the same
- subdirectory, invoke the Page2Cfg program, and follow the prompts.
-
- ═════════════════════════════════════════════════════════════════════
-
- Should you find any bugs in the program (God forbid ...) or have any
- suggestions for additional functionality, you can reach the author by
- leaving an electronic mail message for Richard Byrne on any of the
- fine electonic bulletin board systems listed below:
-
- Software Society Software Society South
- Sysop: Paul Kopit Sysop: Dave Klein
- (201) 729-7410 (201) 214-8896
-
- Sparta PCBoard Chuck's Attempt
- Sysop: Richard Driggers Sysop: Chuck Ammann
- (201) 729-5377 (201) 729-2602
-
- Computer Connections Northern Lights
- Sysop: Robert Blacher Sysop: Jack Kilday
- (202) 547-2008 (207) 766-2467
-
- ═════════════════════════════════════════════════════════════════════
-
- I have placed these programs and their source code into the public
- domain in the hopes that they may prove useful to someone other
- then myself.
-
- Please feel free to distribute these programs by any means available.
- I only ask, as a courtesy, that the programs not be distributed
- without the inclusion of the source code and the documentation file.
-
- Since these programs are truly public domain software, if you paid
- someone more than $5.00 to receive them, you've probably been ripped
- off.
-
- rpb
- 6/4/88
-
- ═════════════════════════════════════════════════════════════════════
-